/* Main styles for AIChat吉PT userscript */

ul,
ol {
  white-space: unset !important;
}

#aiDivMain {
  max-height: calc(100% - 52px);
  width: 760px;
  position: fixed;
  right: -750px;
  transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0s;
  bottom: 0px;
  z-index: 1000;
  box-shadow: #00000000 0px 0px 12px 0px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow-y: hidden;
  padding: 0;
  user-select: text;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

#aiDivMain:hover {
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

#aiDivMain:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #4d8af0, #63e6be);
}

#aiTool {
  border-radius: 12px;
  z-index: 1000;
  overflow-y: auto;
  padding: 0 15px;
  user-select: text;
  display: block;
  width: 200px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

#aiTool:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#selectBox {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  background-color: rgba(69, 69, 69, 0.7);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 30px;
  margin: 8px 0;
}

#selectBox:focus {
  outline: none;
  border-color: #4d8af0;
  box-shadow: 0 0 0 2px rgba(77, 138, 240, 0.25);
}
.ai-content p {
  margin: 0 !important;
}
#chat-main-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 20px;
  gap: 16px;
}

#aiDiv2 {
  border-radius: 12px;
  z-index: 1000;
  background-color: rgba(50, 50, 50, 0.6);
  padding: 15px;
  user-select: text;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
  flex: 1;
  min-height: 100px;
  overflow-y: auto;
  position: relative;
}

/* Add a subtle gradient overlay at the bottom for a fading effect */
#aiDiv2:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: linear-gradient(
    to bottom,
    rgba(50, 50, 50, 0),
    rgba(50, 50, 50, 0.6)
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

#aiDiv2.scrolled:after {
  opacity: 1;
}

#aiDiv2:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.1);
}

#buttondiv {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background-color: rgba(40, 40, 40, 0.85);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1002;
  position: sticky;
  bottom: 0;
}

#chatjptT {
  padding-left: 10px;
  padding-right: 10px;
  width: 120px;
  z-index: 1001;
  background-color: transparent;
  color: white;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 13px;
  background: linear-gradient(90deg, #4d8af0, #63e6be);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#chatjptI {
  padding-left: 18px;
  margin-right: 10px;
  width: 100%;
  height: 42px;
  border-radius: 21px;
  z-index: 1001;
  background-color: rgba(30, 30, 30, 0.8);
  color: #ffffff;
  border: 1px solid rgba(100, 100, 100, 0.3);
  font-size: 14px;
  transition: all 0.2s ease;
}

#chatjptI:focus {
  border-color: #4d8af0;
  box-shadow: 0 0 0 3px rgba(77, 138, 240, 0.2);
  outline: none;
  background-color: rgba(35, 35, 35, 0.9);
}

#chatjptI::placeholder {
  color: rgba(200, 200, 200, 0.7);
}

/* 欢迎界面样式 */
.chat-welcome {
  padding: 15px;
  color: #e6e6e6;
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.welcome-header {
  text-align: center;
  margin-bottom: 25px;
}

.welcome-logo {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 5px;
  background: linear-gradient(90deg, #4d8af0, #63e6be);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  animation: pulse 2s infinite alternate;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 1;
  }
}

.welcome-logo span {
  background: linear-gradient(90deg, #63e6be, #4d8af0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.welcome-subtitle {
  font-size: 16px;
  color: #b3b3b3;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: inline-block;
  position: relative;
}

.welcome-subtitle:after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #4d8af0, #63e6be);
  transform: translateX(-50%);
  border-radius: 1px;
}

.welcome-message {
  margin-bottom: 25px;
  padding: 20px;
  background-color: rgba(35, 35, 35, 0.5);
  border-radius: 12px;

  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.welcome-message:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.welcome-message p {
  margin-top: 0;
  margin-bottom: 15px;
}

.feature-list {
  margin: 0;
  padding-left: 15px;
}

.feature-list li {
  margin-bottom: 12px;
  list-style-type: none;
  position: relative;
  line-height: 1.5;
  padding-left: 25px;
  animation: slideIn 0.5s ease-out;
  animation-fill-mode: both;
}

.feature-list li:nth-child(1) {
  animation-delay: 0.1s;
}
.feature-list li:nth-child(2) {
  animation-delay: 0.2s;
}
.feature-list li:nth-child(3) {
  animation-delay: 0.3s;
}
.feature-list li:nth-child(4) {
  animation-delay: 0.4s;
}
.feature-list li:nth-child(5) {
  animation-delay: 0.5s;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.feature-list li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  background-size: contain;
  background-repeat: no-repeat;
}

.feature-list li:nth-child(1):before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234d8af0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
}

.feature-list li:nth-child(2):before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234d8af0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E");
}

.feature-list li:nth-child(3):before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234d8af0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'%3E%3C/path%3E%3Cpath d='M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z'%3E%3C/path%3E%3C/svg%3E");
}

.feature-list li:nth-child(4):before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234d8af0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'%3E%3C/path%3E%3Cpolyline points='14 2 14 8 20 8'%3E%3C/polyline%3E%3Cline x1='16' y1='13' x2='8' y2='13'%3E%3C/line%3E%3Cline x1='16' y1='17' x2='8' y2='17'%3E%3C/line%3E%3Cpolyline points='10 9 9 9 8 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.feature-list li:nth-child(5):before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234d8af0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='16 18 22 12 16 6'%3E%3C/polyline%3E%3Cpolyline points='8 6 2 12 8 18'%3E%3C/polyline%3E%3C/svg%3E");
}

.feature-list li strong {
  color: #63e6be;
  font-weight: 600;
}

.welcome-instructions {
  background-color: rgba(35, 35, 35, 0.5);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.welcome-instructions:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.welcome-instructions p {
  margin-top: 0;
  margin-bottom: 12px;
  font-weight: bold;
  color: #e6e6e6;
}

.welcome-instructions ol {
  margin: 0;
  padding-left: 25px;
  border: none;
  background-color: transparent;
  counter-reset: item;
  list-style-type: none;
}

.welcome-instructions li {
  margin-bottom: 8px;
  color: #cccccc;
  position: relative;
  counter-increment: item;
  padding-left: 5px;
}

.welcome-instructions li:before {
  content: counter(item) ".";
  position: absolute;
  left: -25px;
  width: 22px;
  text-align: right;
  color: #63e6be;
  font-weight: bold;
}

/* 用户问候样式 */
.user-greeting {
  margin: 12px 0;
  font-size: 14px;
  color: #e6e6e6;
  padding: 8px 12px;
  background-color: rgba(35, 35, 35, 0.3);
  border-radius: 6px;
  display: inline-block;
}

.user-name {
  color: #63e6be;
  font-weight: bold;
}

/* 对话界面样式 */
.user-question {
  border-left: 3px solid #4d8af0;
  padding: 18px;
  margin-bottom: 20px;
  border-radius: 0 12px 12px 0;
  animation: fadeInLeft 0.3s ease;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.selected-code {
  border-radius: 10px;
  padding: 15px;
  margin: 15px 0;
  max-height: 200px;
  overflow-y: auto;
}

.selected-code pre {
  margin: 8px 0 0 0;
  background-color: #1a1a1a;
  border-radius: 8px;
  padding: 15px;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.selected-code code {
  background-color: transparent;
  color: #e0e0e0;
  padding: 0;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 13px;
  line-height: 1.5;
}

.ai-response {
  border-left: 3px solid #63e6be;
  padding: 18px;
  border-radius: 0 12px 12px 0;
  position: relative;
  animation: fadeInRight 0.3s ease;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.ai-response strong,
.user-question strong {
  margin-bottom: 10px;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.ai-response strong {
  color: #63e6be;
}

.user-question strong {
  color: #4d8af0;
}

.ai-content {
  line-height: 1.6;
}

.ai-content p {
  margin: 10px 0;
}

/* 正在思考动画 */
.ai-thinking {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 30px 0;
}

.dot-typing {
  position: relative;
  left: -9999px;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: #63e6be;
  color: #63e6be;
  box-shadow: 9984px 0 0 0 #63e6be, 9999px 0 0 0 #63e6be, 10014px 0 0 0 #63e6be;
  animation: dot-typing 1.5s infinite linear;
}

.thinking-text {
  color: #a0a0a0;
  margin-top: 15px;
  font-size: 14px;
  letter-spacing: 0.5px;
  animation: pulse 2s infinite alternate;
}

@keyframes dot-typing {
  0% {
    box-shadow: 9984px 0 0 0 #63e6be, 9999px 0 0 0 #63e6be,
      10014px 0 0 0 #63e6be;
  }
  16.667% {
    box-shadow: 9984px -10px 0 0 #63e6be, 9999px 0 0 0 #63e6be,
      10014px 0 0 0 #63e6be;
  }
  33.333% {
    box-shadow: 9984px 0 0 0 #63e6be, 9999px 0 0 0 #63e6be,
      10014px 0 0 0 #63e6be;
  }
  50% {
    box-shadow: 9984px 0 0 0 #63e6be, 9999px -10px 0 0 #63e6be,
      10014px 0 0 0 #63e6be;
  }
  66.667% {
    box-shadow: 9984px 0 0 0 #63e6be, 9999px 0 0 0 #63e6be,
      10014px 0 0 0 #63e6be;
  }
  83.333% {
    box-shadow: 9984px 0 0 0 #63e6be, 9999px 0 0 0 #63e6be,
      10014px -10px 0 0 #63e6be;
  }
  100% {
    box-shadow: 9984px 0 0 0 #63e6be, 9999px 0 0 0 #63e6be,
      10014px 0 0 0 #63e6be;
  }
}

/* 错误消息样式 */
.error-message {
  background-color: rgba(255, 92, 92, 0.15);
  border-left: 3px solid #ff5c5c;
  padding: 18px;
  margin: 18px 0;
}

/* 在列表中的错误消息单元格样式 */
td.error-message {
  background-color: transparent;
  border-left: none;
  padding: 6px 10px;
  margin: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 500px;
}

/* 错误消息文字颜色 - 红色 */
.error-message-error {
  color: #ff6347; /* 红色 */
  animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* 警告消息文字颜色 - 橙色 */
.error-message-warning {
  color: #ffa500; /* 橙色 */
}

/* 注意警告消息文字颜色 - 黄色 */
.error-message-notice {
  color: #f0c53f; /* 明亮的黄色 */
  font-weight: 500;
}

/* 信息消息文字颜色 - 蓝色 */
.error-message-info {
  color: #3498db; /* 明亮的蓝色 */
  font-weight: 500;
}

@keyframes shake {
  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }
  20%,
  80% {
    transform: translate3d(1px, 0, 0);
  }
  30%,
  50%,
  70% {
    transform: translate3d(-1px, 0, 0);
  }
  40%,
  60% {
    transform: translate3d(1px, 0, 0);
  }
}

.error-message strong {
  color: #ff5c5c;
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
}

.error-details {
  background-color: rgba(25, 25, 25, 0.5);
  padding: 12px;
  border-radius: 8px;
  margin-top: 10px;
  font-family: monospace;
  font-size: 12px;
  color: #ff9999;
  box-shadow: inset 0 0 5px rgba(255, 92, 92, 0.2);
}

.code-truncated {
  color: #999;
  font-size: 12px;
  margin-top: 8px;
  text-align: center;
  font-style: italic;
  padding: 4px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

/* Code styling */
code {
  word-break: break-all;
  word-wrap: break-word;
  border-radius: 5px;
  background-color: #2a2a2a;
  padding: 2px 5px;
  color: #a5d6ff;
  font-family: "JetBrains Mono", "Fira Code", monospace;
}

pre {
  position: relative;
  margin: 15px 0;
  background-color: #1a1a1a;
  border-radius: 8px;
  padding: 15px;
  overflow-x: auto;
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.15);
}

pre code {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 13px;
  line-height: 1.6;
}

.code-insert-btn {
  position: absolute;
  bottom: 10px;
  right: 8px;
  background-color: rgba(77, 138, 240, 0.2);
  color: #4d8af0;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  z-index: 5;
  user-select: none;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.code-insert-btn:hover {
  background-color: rgba(77, 138, 240, 0.5);
  color: white;
  transform: translateY(-1px);
}

.code-insert-btn:active {
  transform: translateY(1px);
}

li {
  margin: 8px 0;
  line-height: 1.6;
}

/* Highlightjs styling */
.hljs {
  background: #1a1a1a;
  color: #e6e6e6;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-literal,
.hljs-section,
.hljs-link {
  color: #ff79c6;
}

.hljs-function .hljs-keyword {
  color: #8be9fd;
}

.hljs-subst {
  color: #f8f8f2;
}

.hljs-string,
.hljs-title,
.hljs-name,
.hljs-type,
.hljs-attribute,
.hljs-symbol,
.hljs-bullet,
.hljs-addition,
.hljs-variable,
.hljs-template-tag,
.hljs-template-variable {
  color: #f1fa8c;
}

.hljs-comment,
.hljs-quote,
.hljs-deletion,
.hljs-meta {
  color: #6272a4;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-literal,
.hljs-title,
.hljs-section,
.hljs-doctag,
.hljs-type,
.hljs-name,
.hljs-strong {
  font-weight: bold;
}

.hljs-emphasis {
  font-style: italic;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(30, 30, 30, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(100, 100, 100, 0.4);
  border-radius: 4px;
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(120, 120, 120, 0.6);
}

/* Specific scrollbar for #aiDivMain */
#aiDivMain::-webkit-scrollbar {
  width: 6px;
}

#aiDivMain::-webkit-scrollbar-track {
  background: rgba(30, 30, 30, 0.1);
  margin: 4px 0;
}

#aiDivMain::-webkit-scrollbar-thumb {
  background: rgba(100, 100, 100, 0.3);
  border-radius: 3px;
}

#aiDivMain::-webkit-scrollbar-thumb:hover {
  background: rgba(120, 120, 120, 0.5);
}

/* Specific scrollbar for #aiDiv2 (chat container) */
#aiDiv2::-webkit-scrollbar {
  width: 6px;
}

#aiDiv2::-webkit-scrollbar-track {
  background: rgba(30, 30, 30, 0.1);
  margin: 4px 0;
}

#aiDiv2::-webkit-scrollbar-thumb {
  background: rgba(100, 100, 100, 0.3);
  border-radius: 3px;
}

#aiDiv2::-webkit-scrollbar-thumb:hover {
  background: rgba(120, 120, 120, 0.5);
}

/* Monaco editor styling */
.monaco-editor .codelens-decoration > a,
.monaco-editor .codelens-decoration > span {
  color: #999999 !important;
  display: inline-flex !important;
  align-items: center !important;
  font-weight: 500 !important;
}

.monaco-editor .codelens-decoration > a:hover,
.monaco-editor .codelens-decoration > span:hover {
  color: #b4b4b4 !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-radius: 3px !important;
  transition: all 0.2s ease !important;
}

/* Error list component styling */
.error-list-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(40, 40, 40, 0.95);
  border-top: 1px solid rgba(80, 80, 80, 0.5);
  height: 180px; /* 默认高度，现在可调整 */
  min-height: 50px;
  max-height: 80vh;
  z-index: 998; /* Lower than the default 999 to ensure proper stacking */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 12px;
  color: #e0e0e0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  resize: vertical;
  will-change: height; /* 优化性能 */
}

/* 拖动时移除过渡效果，提高响应速度 */
.error-list-container.resizing {
  transition: none !important;
}

/* 最小化状态 */
.error-list-container.collapsed {
  min-height: unset;
  border-radius: 0;
  overflow: hidden;
}

/* 拖动调整大小的手柄 */
.error-list-resizer {
  position: absolute;
  top: -5px;
  left: 0;
  right: 0;
  height: 10px;
  cursor: ns-resize;
  z-index: 1;
  transition: background-color 0.2s ease;
}

.error-list-resizer:hover,
.error-list-resizer.active {
  background-color: rgba(77, 138, 240, 0.3);
}

.error-list-resizer:hover:before,
.error-list-resizer.active:before {
  background-color: rgba(77, 138, 240, 0.7);
  width: 60px;
  box-shadow: 0 0 5px rgba(77, 138, 240, 0.5);
}

.error-list-resizer:hover:after,
.error-list-resizer.active:after {
  color: rgba(77, 138, 240, 0.9);
}

.error-list-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 6px 15px;
  background-color: rgb(38 38 38);
  border-bottom: 1px solid rgba(80, 80, 80, 0.5);
  user-select: none;
  min-height: 32px;
  flex-shrink: 0;
}

.error-list-title {
  font-weight: 500;
  display: flex;
  align-items: center;
}

.error-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  background-color: rgba(255, 99, 71, 0.7);
  border-radius: 9px;
  margin-left: 8px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: bold;
}

/* 注意警告计数样式 */
.error-count-notice {
  background-color: rgba(240, 197, 63, 0.7); /* 黄色背景 */
  color: #333; /* 深色文字，增加对比度 */
}

/* 信息计数样式 */
.error-count-info {
  background-color: rgba(52, 152, 219, 0.7); /* 蓝色背景 */
  color: white; /* 白色文字 */
}

.error-list-toggle {
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: all 0.2s ease;
  border-radius: 4px;
  margin-left: 8px;
}

.error-list-toggle:hover {
  opacity: 1;
  background-color: rgba(80, 80, 80, 0.5);
}

.error-list-toggle-icon {
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='18 15 12 9 6 15'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.2s ease;
}

.error-list-toggle-icon.collapsed {
  transform: rotate(180deg);
}

.error-list-content {
  overflow-y: auto;
  flex: 1;
  padding: 0;
}

.error-list-table {
  width: 100%;
  border-collapse: collapse;
}

.error-list-item {
  position: relative;
  border-bottom: 1px solid rgba(80, 80, 80, 0.3);
  transition: all 0.2s ease;
  cursor: pointer;
}

/* 不同类型消息行的样式 */
.error-list-item-error {
  border-left: 2px solid rgba(255, 99, 71, 0.5);
}

.error-list-item-warning {
  border-left: 2px solid rgba(255, 165, 0, 0.5);
}

.error-list-item-notice {
  border-left: 2px solid rgba(240, 197, 63, 0.5);
}

.error-list-item-info {
  border-left: 2px solid rgba(52, 152, 219, 0.5);
}

/* 不同类型消息行的悬停效果 */
.error-list-item-error:hover {
  background-color: rgba(255, 99, 71, 0.15);
  border-left: 2px solid rgba(255, 99, 71, 0.9);
}

.error-list-item-warning:hover {
  background-color: rgba(255, 165, 0, 0.15);
  border-left: 2px solid rgba(255, 165, 0, 0.9);
}

.error-list-item-notice:hover {
  background-color: rgba(240, 197, 63, 0.15);
  border-left: 2px solid rgba(240, 197, 63, 0.9);
}

.error-list-item-info:hover {
  background-color: rgba(52, 152, 219, 0.15);
  border-left: 2px solid rgba(52, 152, 219, 0.9);
}

.error-list-item:hover {
  background-color: rgba(60, 60, 60, 0.5);
}

.error-list-item td {
  padding: 6px 10px;
  white-space: nowrap;
}

.error-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
}

.error-icon-error {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ff6347' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='15' y1='9' x2='9' y2='15'%3E%3C/line%3E%3Cline x1='9' y1='9' x2='15' y2='15'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.error-icon-warning {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffa500' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'%3E%3C/path%3E%3Cline x1='12' y1='9' x2='12' y2='13'%3E%3C/line%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* 注意警告的图标样式 */
.error-icon-notice {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f0c53f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'%3E%3C/path%3E%3Cline x1='12' y1='9' x2='12' y2='13'%3E%3C/line%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transform: scale(1.15); /* 稍微放大图标 */
  transition: transform 0.2s ease;
}

.error-icon-info {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233498db' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='16' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.error-filter-checkmark {
  margin-left: auto;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2363e6be' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* 空列表样式 */
.error-list-empty {
  text-align: center;
  color: #aaaaaa;
  padding: 15px 0;
  font-style: italic;
}

.error-list-settings {
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: all 0.2s ease;
  border-radius: 4px;
  margin-left: 8px;
}

.error-list-settings:hover {
  opacity: 1;
  background-color: rgba(80, 80, 80, 0.5);
}

.error-settings-icon {
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'%3E%3C/circle%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transform: scale(0.9);
}

/* 一键修复按钮样式 */
.error-fix-all {
  display: flex;
  align-items: center;
  background-color: rgba(77, 138, 240, 0.15);
  color: #4d8af0;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-left: auto;
  margin-right: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(77, 138, 240, 0.2);
}

.error-fix-all:hover {
  background-color: rgba(77, 138, 240, 0.3);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.error-fix-all:active {
  transform: translateY(1px);
}

.error-fix-all-icon {
  width: 16px;
  height: 16px;
  margin-right: 5px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234d8af0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.error-fix-all span {
  font-weight: 500;
}

/* Monaco editor error decorations */
.error-line-highlight {
  background-color: rgba(255, 0, 0, 0.1);
}

.warning-line-highlight {
  background-color: rgba(241, 196, 15, 0.1);
  border-left: 3px solid #f39c12;
}

.error-text-highlight {
  color: #ff0000;
  text-decoration: wavy underline #ff0000;
}

.warning-text-highlight {
  color: #f39c12;
  text-decoration: wavy underline #f39c12;
}

/* 行尾错误消息样式 */
.error-message-after-error {
  font-style: normal;
  font-weight: normal;
  text-decoration: none;
  border-radius: 0.2em;

  color: rgb(255, 100, 100) !important;
  user-select: none;
  pointer-events: none;
}

.error-message-after-warning {
  font-style: normal;
  font-weight: normal;
  text-decoration: none;
  border-radius: 0.2em;

  color: rgb(250, 151, 58) !important;
  user-select: none;
  pointer-events: none;
}

.error-glyph-margin {
  background-color: #ff0000;
  width: 5px !important;
}

.warning-glyph-margin {
  background-color: #f39c12;
  width: 5px !important;
}
/* Error fix button styles */
.error-fix-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  background: linear-gradient(135deg, rgb(28 61 114), rgb(40 69 61 / 90%));
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  font-weight: 500;
  min-width: 40px;
}

.error-fix-button:hover {
  background: linear-gradient(
    135deg,
    rgba(77, 138, 240, 1),
    rgba(99, 230, 190, 1)
  );
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.error-fix-button:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.error-fix-button:before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpath d='M12 8v4'%3E%3C/path%3E%3Cpath d='M12 16h.01'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  vertical-align: middle;
}
/* 大型用户问候样式 */
.user-greeting-large {
  display: flex;
  align-items: center;
  margin: 25px 0;
  padding: 22px;
  background: linear-gradient(
    135deg,
    rgba(77, 138, 240, 0.08),
    rgba(99, 230, 190, 0.08)
  );
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.8s ease;
  transform-origin: center;
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.user-greeting-large:hover {
  transform: scale(1.02) translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.user-greeting-large:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4d8af0, #63e6be);
  opacity: 0.5;
}

/* Decorative background elements */
.user-greeting-large:after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(77, 138, 240, 0.05) 0%,
    rgba(99, 230, 190, 0.05) 60%,
    transparent 70%
  );
  z-index: 0;
}

.user-avatar {
  margin-right: 20px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.user-greeting-large:hover .user-avatar {
  transform: scale(1.05);
}

.user-avatar-inner {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4d8af0, #63e6be);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
  color: white;
  box-shadow: 0 4px 15px rgba(77, 138, 240, 0.3);
  border: 3px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  animation: avatarPulse 3s infinite alternate;
  text-transform: uppercase;
  background-size: cover;
  background-position: center;
  transition: all 0.3s ease-out;
}

/* User status indicator */
.user-status-indicator {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #4caf50;
  position: absolute;
  bottom: 5px;
  right: 2px;
  border: 3px solid rgba(40, 40, 40, 0.95);
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  animation: statusPulse 3s infinite;
}

@keyframes statusPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 5px rgba(76, 175, 80, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
  }
}

/* User avatar with actual profile pic */
.user-avatar-inner[style*="background-image"] {
  color: transparent;
}

/* Use psuedo-element for overlay gradient effect on profile pictures */
.user-avatar-inner[style*="background-image"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(77, 138, 240, 0.2),
    rgba(99, 230, 190, 0.2)
  );
  mix-blend-mode: overlay;
  border-radius: 50%;
  z-index: 1;
}

/* Avatar glow effect */
.user-avatar-inner:before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  animation: rotate 10s linear infinite;
  z-index: 1;
}

/* User avatar transition when loaded */
.user-avatar-inner.avatar-loaded {
  animation: avatarLoaded 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 25px rgba(77, 138, 240, 0.4);
}

@keyframes avatarLoaded {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes avatarPulse {
  0% {
    box-shadow: 0 4px 15px rgba(77, 138, 240, 0.3);
  }
  100% {
    box-shadow: 0 4px 25px rgba(99, 230, 190, 0.4);
  }
}

.greeting-message {
  position: relative;
  z-index: 2;
}

.greeting-message h2 {
  margin: 0 0 8px 0;
  font-size: 24px;
  font-weight: 500;
  background: linear-gradient(90deg, #4d8af0, #63e6be);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
  animation: shimmerText 2s infinite;
}

@keyframes shimmerText {
  0% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
  100% {
    background-position: 0% center;
  }
}

.greeting-message p {
  margin: 0;
  font-size: 16px;
  color: #e0e0e0;
  line-height: 1.5;
  animation: fadeIn 0.8s ease 0.3s both;
}

.greeting-time {
  font-size: 13px;
  color: #b3b3b3;
  margin-bottom: 5px;
  animation: fadeIn 0.8s ease 0.2s both;
}

/* Stylized indicator dot for time */
.greeting-time:before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(90deg, #4d8af0, #63e6be);
  margin-right: 6px;
  vertical-align: middle;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.script-editor_debugPanel__b3m_6 {
  color: #e0e0e0 !important;
  background: rgba(40, 40, 40, 1) !important;
}
.debugPanel_consoleTitleContainer__vlv6V {
  position: relative;
  border-bottom: 1px solid rgba(80, 80, 80, 0.5) !important;
  border-top: 1px solid rgba(80, 80, 80, 0.5) !important;
  height: 40px !important;
}
.debugPanel_scriptEval__MRtlq {
  border-top: 1px solid rgba(80, 80, 80, 0.5) !important;
}
.debugPanel_consoleTitle__8LPKn {
  font-size: 12px !important;
  font-weight: 500 !important;
  padding: 0 !important;
  border-bottom: unset !important;
  line-height: 40px !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif !important;
}
.debugPanel_logError__7Xp2t i {
  padding-right: 0 !important;
}
/* 调试面板错误日志样式 */
.debugPanel_logError__7Xp2t {
  position: relative;
  padding-right: 45px !important; /* 为更大的按钮留出更多空间 */
  border-left: 3px solid #ff6347 !important; /* 添加醒目的红色边框 */
  margin: 5px 0 !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  padding-left: 12px !important;
  border-radius: 0 4px 4px 0 !important;
  transition: background-color 0.2s ease !important;
  font-family: "Consolas", "Monaco", monospace !important;
  line-height: 1.5 !important;
  font-size: 13px !important;
  background-color: rgba(255, 99, 71, 0.05) !important;
  overflow-wrap: break-word !important;
  word-break: break-all !important;
}

.debugPanel_logError__7Xp2t:hover {
  background-color: rgba(255, 99, 71, 0.15) !important;
}

/* AI解释按钮样式 */
.ai-explain-error-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ff8100;
  border: 2px solid rgb(255 129 0 / 14%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  animation: pulse-glow 2s infinite alternate;
}

.ai-explain-error-btn:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(77, 138, 240, 0.5);
}

.ai-explain-error-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.ai-explain-error-btn:before {
  content: "AI";
  font-size: 14px;
  font-weight: bold;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 5px rgba(240, 161, 77, 0.7);
  }
  100% {
    box-shadow: 0 0 15px rgba(230, 199, 99, 0.8);
  }
}

/* AI解释器加载状态 */
.ai-explain-error-btn.loading {
  pointer-events: none;
  background: rgba(40, 40, 40, 0.8);
}

.ai-explain-error-btn.loading:before {
  content: "";
  width: 16px;
  height: 16px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 清空控制台按钮样式 */
.console-clear-btn {
  display: flex;
  align-items: center;
  background-color: rgba(77, 138, 240, 0.15);
  color: #4d8af0;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(77, 138, 240, 0.2);
  z-index: 100;
}

.console-clear-btn:hover {
  background-color: rgba(77, 138, 240, 0.3);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transform: translateY(-50%) scale(1.05);
}

.console-clear-btn:active {
  transform: translateY(-50%) scale(0.98);
}

.console-clear-btn span {
  font-weight: 500;
}
.script-manager_expandBtn__v7u8L {
  z-index: 2000 !important;
}
.detailPanelTab_tabList__W87vh {
  background: #262626 !important;
}
.detailPanelTab_currentTab__iuRUK,
.detailPanelTab_tab__ZoqaJ {
  background: unset !important;
}
.detailPanelTab_currentTab__iuRUK,
.detailPanelTab_tab__ZoqaJ:hover {
  background: #404040 !important;
}
.detailPanel_contentContainer__WkDjr {
  background: #333 !important;
}
.detailPanelTab_tabList__W87vh {
  opacity: 1 !important;
}
.create-panel_tabItemActive__4ftBB,
.create-panel_tabItem__qFsxC {
  background: rgb(38 38 38) !important;
}
.create-panel_tabItemActive__4ftBB,
.create-panel_tabItemActive__4ftBB:hover,
.create-panel_tabItem__qFsxC:hover {
  background: rgb(64 64 64) !important;
}
.edit-model-panel_contentContainer__nj5ii {
  background: #333 !important;
}
.edit-model-panel_tabItemActive__Wf4vd,
.edit-model-panel_tabItem__po82F {
  background: rgb(38 38 38) !important;
}
.edit-model-panel_tabItemActive__Wf4vd {
  background: rgb(64 64 64) !important;
}
.style_gameUIMenu__WEJAg {
  background: rgb(38 38 38) !important;
}

.animated-block_label__qqojH:hover {
  background-color: rgba(77, 138, 240, 0.1) !important;
}

.animated-block_label__qqojH:hover:after {
  opacity: 0.8;
}

/* 复制成功动画 */
@keyframes copySuccess {
  0% {
    background-color: rgba(77, 138, 240, 0.1);
  }
  50% {
    background-color: rgba(100, 230, 120, 0.2);
  }
  100% {
    background-color: rgba(77, 138, 240, 0.1);
  }
}

.copy-success {
  animation: copySuccess 1s ease;
}
._1zulRt {
  user-select: text !important;
}
.codicon-close:before {
  color: #ffffff;
}

/* 代码包模态框样式 */
#code-package-modal {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

.code-package-card {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.code-package-card button {
  outline: none;
  position: relative;
  overflow: hidden;
}

.code-package-card button:focus {
  box-shadow: 0 0 0 2px rgba(77, 138, 240, 0.25);
}

.code-package-card button:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.3);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.code-package-card button:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  20% {
    transform: scale(25, 25);
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: scale(40, 40);
  }
}

.code-package-modal-content {
  animation: slideInModal 0.3s ease-out;
}

@keyframes slideInModal {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 导入按钮旁边的提示样式 */
.import-tooltip {
  border-radius: 6px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.import-tooltip:after {
  content: "";
  position: absolute;
  bottom: -5px;
  right: 15px;
  width: 10px;
  height: 10px;
  background-color: rgba(40, 40, 40, 0.95);
  transform: rotate(45deg);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 代码包导入确认模态框 */
.code-package-confirm {
  background-color: rgba(77, 138, 240, 0.08);
  padding: 15px;
  border-radius: 12px;
  margin-top: 20px;
  border: 1px solid rgba(77, 138, 240, 0.2);
  animation: fadeSlideUp 0.3s ease-out;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.code-package-confirm-title {
  font-weight: 500;
  margin-bottom: 10px;
  color: #63e6be;
  display: flex;
  align-items: center;
}

.code-package-confirm-title:before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2363e6be' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.code-package-confirm-buttons {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
  gap: 10px;
}

.code-package-confirm button {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.code-package-confirm button.cancel {
  background-color: rgba(120, 120, 120, 0.2);
  color: #ccc;
  border: 1px solid rgba(120, 120, 120, 0.3);
}

.code-package-confirm button.confirm {
  background-color: rgba(99, 230, 190, 0.2);
  color: #63e6be;
  border: 1px solid rgba(99, 230, 190, 0.3);
}

.code-package-confirm button:hover {
  filter: brightness(1.2);
  transform: translateY(-2px);
}

.code-package-confirm button:active {
  transform: translateY(1px);
}

/* 新增代码包卡片动效 */
.code-package-card:active {
  transform: scale(0.98) !important;
}

/* 通知样式优化 */
.code-package-notification {
  border-radius: 8px !important;
  backdrop-filter: blur(8px) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
  font-weight: 500 !important;
}

.code-package-notification.success {
  border-left: 3px solid #63e6be !important;
}

.code-package-notification.error {
  border-left: 3px solid #ff5c5c !important;
}
